﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="buyer_historyPrice.aspx.cs"
    Inherits="PeisongWeb.buyer_historyPrice" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>商品历史价格查询</title>
    <!--#include file="../global.inc" -->
    <script src="/app_common/scripts/jquery-latest.pack.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager runat="server" ID="ScriptManager1" />
    <div id="container">
        <uc1:headerV2 runat="server" ID="header1" />
        <div id="homemain">
            <div id="main">
                <div class="title">
                    <div class="title_text">
                        <ul>
                            <li class="color1">商品历史价格查询</li>
                        </ul>
                    </div>
                </div>
                <div class="line_top">
                </div>
                <div id="mainmiddle">
                    <div class="recipes_left">
                        <div class="categories" style="text-align: left; margin-top: 20px;">
                            <ext:TreePanel ID="TreePanel1" runat="server" Title="类别列表" Header="false" Width="178" Height="466"
                                 RootVisible="false" AutoScroll="true" CollapseFirst="false" ContainerScroll="true" Border="false">
                                <Loader>
                                    <ext:TreeLoader DataUrl="buyer_historyPrice.ashx" RequestMethod="GET" />
                                </Loader>
                                <Root>
                                    <ext:AsyncTreeNode NodeID="0,0" Text="所有类别" />
                                </Root>
                            </ext:TreePanel>
                        </div>
                    </div>
                    <div class="recipes_right">
                        <div style="padding-left: 20px;">
                            <div class="price_list">
                                <div class="price_title">
                                    <span>商品历史价格查询</span>
                                </div>
                                <div id="hiddenDIV" style="display:none;">
                                    <iframe id="loader" frameborder="0" width="100%" scrolling="no" height="350px"  src="iframe_historyPrice.aspx">
                                    </iframe>
                                </div>
                            </div>
                            <a id="alpha_line" style="display:none;" href="#" target="_blank">全屏显示</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <uc1:footerV2 runat="server" ID="footer1" />
        <asp:HiddenField runat="server" ID="hd_current_value" />
    </div>
    
     <script type="text/javascript">
         function callbackFunction(productId) {
             var userId = $.ajax({
                 url: 'customer.ashx',
                 data: 'Param=checksession',
                 async: false,
                 cache: false
             }).responseText;
             
             if (userId != 0) {
                 document.getElementById('hiddenDIV').style.display = 'block';
                 $('#alpha_line').attr('href', 'buyer_historyPriceFullScreen.aspx?productId=' + productId).show();
                 document.getElementById('loader').src = 'iframe_historyPrice.aspx?productId=' + productId;
             }
             else {
                 parent.location.href = "login.html";
             }
         }
     </script>
    </form>

   

</body>
</html>
